﻿@model NetSurveillance.WebApp.DataServices.Models.Menu
@using (Html.BeginForm())
{
    <fieldset class="inline-form">
        <legend>Create Or Edit Menu</legend>
        <div class="editor-entry">
            <div class="editor-label">
                @Html.LabelFor(m => m.ParentId)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(m => m.ParentId, ViewData.ReadListItems("ParentMenus"), Resources.Resource.DropdownList_None)
            </div>
        </div>
        <div class="editor-entry">
            <div class="editor-label">
                @Html.LabelFor(m => m.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Name)
            </div>
        </div>
        <div class="editor-entry">
            <div class="editor-label">
                @Html.LabelFor(m => m.Desc)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Desc)
            </div>
        </div>
        <div class="editor-entry">
            <div class="editor-label">
                @Html.LabelFor(m => m.RelativeUrl)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.RelativeUrl)
            </div>
        </div>
        <div class="editor-entry">
            <div class="editor-label">
                @Html.LabelFor(m => m.AbsoluteUrl)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.AbsoluteUrl)
            </div>
        </div>
    </fieldset>
    <div id="btnContain" class="buttonsContain">
        <input type="button" id="btnSubmit" value="Save" />
    </div>   
}

@section css
{
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")"/>
}

@section javascript
{
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.23.min.js")"></script>

    <script type="text/javascript">
        $(function () {

        });
    </script>
}
